import request from '@/utils/request'

export function postHandle(url, data) {
  return request({
    url: url,
    method: 'post',
    data
  })
}

export function getHandle(url, params) {
  return request({
    url,
    method: 'get',
    params
  })
}

export function downloadHandle(url, data) {
  return request({
    url,
    method: 'post',
    data,
    responseType: 'blob'
  })
}
